# -*- coding: UTF-8 -*-
# Author: Damon(wuud1)
# CreateDate: 
# Message:
from collections import OrderedDict
#
HEADERS = {
    'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36',
    'Host':'wpc.mobis.co.kr',
    'Key':'bf33add5-fb5a-44ec-985d-52d2825d0bc8',
    'ClientSign':'770cdc18aaaa57306122e3711ccf2e6b',
    'Referer':'http://wpc.mobis.co.kr/Index/Index.jsp',
    'Accept':'*/*',
    'Accept-Language':'zh-CN,zh;q=0.8;q=0.8',
}

#
COOKIES = {
    "JSESSIONID": "0000Ketrz8QhdnYFYEq8cHF3vC6:1b9i8aoq5",
    "WPCLOGIN": "Ketrz8QhdnYFYEq8cHF3vC6",
    "UserID": "8109702",
}

# 内置代理
PROXIES = {'http': '106.14.190.253:5870'}

# post请求参数原型
POST_DATA = OrderedDict(
    VIN="",
    CRNM="",
    BPNO="",
    HKGB="",
    HSGB="",
    PKGB="",
    OPTY="",
    PCCD="",
    VIEW="",
    EFIN="",
    EFOT="",
    VHCD="",
    GRTY="",
    CRYY="",
    REG1="",
    SGMT="",
    UCCS="",
    UCDT="",
    UCWT="",
    UC01="",
    UC02="",
    UC03="",
    UC04="",
    UC05="",
    UC06="",
    UC07="",
    UC08="",
    UC09="",
    UC10="",
    UCCT="",
    FOPT="",
    ISVIN="",
    YEAR="",
    NAIF="",
    MICD="",
    OCN="",
    VER="",
    VGTAG="",
    ECRD="",
    ICRD="",
    REG="",
    EFAC="",
    MFAC="",
    ENCD="",
    TMCD="",
    STCD="",
    PDATE="",
    SDATE="",
    ENNO="",
    TMNO="",
    TXKEY="",
    AS="",
    FSC="",
    MATCH="",
    LRCD="",
    LANG="",
    UGNO="",
    GRNO="",
    PNCD="",
    PTNO="",
    PTNM="",
    TEXT="",
    FLAG="",
    PCNO="",
)

# 数据库链接配置
DB_CONFIG = dict(
    host="127.0.0.1",
    port=3306,
    user="root",
    passwd="123456",
    db="kia",
    charset="utf8",
)

# 品牌参数对照字典
BRAND_DICT = {
    "kia":{'hkgb':'K'},
    "hyundai":{'hkgb':'H'},
}
COUNTY_DICT = {
    "CHN": "国内",
    "GEN": "国外"
}

# 数据库表
INFO_TABLE = 'cars_info_collection_add'
GROUP_TABLE = 'cars_group_collection_add'
STRUCTRUE_TABLE = 'cars_structure_collection_add'
PART_NUM_TABLE = 'cars_part_num_add'

HAS_CID_LIST = ['CCHNCNZ12', 'CCHNCNY14', 'CCHNCUX16', 'CCHNCWX14', 'CCHNCWY14', 'KCHNPHG11', 'KCHNPHG15', 'KCHNPBHL13', 'KCHNPB114', 'CHN220PA03', 'KCHNPDK12', 'KCHNPGS11', 'KCHNPGS15', 'CCHNCWVU14', 'CCHNCWWU14', 'CCHNCWXU14', 'CCHNCWYU14', 'KCHNPGFE11', 'CCHNPBQ18', 'KCHNPB813', 'KCHNPB816', 'CCHNPC917', 'CCHNPS618', 'KCHNPDM12', 'KGENCVCU04', 'KGENCWGU04', 'KGENCWJU04', 'KGENCWKU04', 'KGENCUDU04', 'KGENCUF08', 'KGENCUGU15', 'GEN5S40501', 'GEN7S40501', 'KGENCWRU13', 'KGENCWTU13', 'DOM4A0PA02', 'DOM4A09700', 'IGENPA016', 'IGENPA018', 'GENM10PA01', 'KGENPB813', 'KGENPB816', 'GEN4A0PA02', 'KGENPA104', 'KGENPTQ07', 'GEC4A09800', 'KGENPTQ15', 'KGENPTQ18', 'GEC4309400', 'KGENPTM10', 'HEURPTMZ10', 'KGENPTM14', 'KGENPJ918', 'GEN170PA01', 'KGENPFC06', 'TGENPFCT08', 'TGENPFCT09', 'GEN260PA00', 'HMJ260PA00', 'GEN2B0PA06', 'KGENPCM06', 'KGENPCM10', 'KGENPDM12', 'KGENPDM15', 'KGENPS118', 'GENH10PA00', 'GEN3A0PA99', 'KGENPFO04', 'HMJ3A0PA99', 'HMJ2E0PA04', 'KHMJPJM04', 'GEN2E0PA04', 'KGENPJM04', 'KGENPD315', 'HGENPD716', 'KGENPD318', 'KGENPEN07', 'KGENPG716', 'KGENPG216', 'KGENPGFE11', 'KGENPE616', 'KGENPE617', 'GEN250PA00', 'GEX1A09900', 'KGENPSB11', 'KGENPSB15', 'MGENPJ018', 'IGENPH618', 'GEX2209500', 'GEN1E0PA06', 'KGENPMC06', 'IND020PA01', 'MAL020PA01', 'GEN060PA01', 'GEN050PA06', 'IGENPMXI06', 'GEX0609900', 'GEN020PA01', 'GEX0209800', 'GEN3L0PA05', 'KGENPTG05', 'KGENPHG11', 'KGENPHG15', 'GEN3B0PA01', 'KGENPLZ04', 'HMJ2C0PA01', 'GEN2C0PA01', 'KHMJPGK07', 'KGENPGK07', 'GEX2709700', 'BGENPM417', 'GEN2D0PA00', 'HMJ2D0PA00', 'KGENPSD11', 'KGENPSD14', 'KGENPF216', 'GEX2809100', 'GEX2909600', 'GEN2H0PA06', 'KGENPHD06', 'IGENPIA11', 'KGENPBHL08', 'KGENPBHL13', 'GEX2409200', 'KGENPDK12', 'KGENPDK08', 'KGENPB114', 'KGENPBH07', 'GEN1C0PA02', 'KGENPTB06', 'IGENPB414', 'IGENPB417', 'HMJ3L0PA05', 'KHMJPTG05', 'GEN390PA99', 'KGENPG817', 'KGENPG917', 'KGENPB116', 'KGENPD216', 'BGENPIJ16', 'IGENPPA07', 'IGENPPA11', 'IMEXPPA11', 'IGENPPB08', 'IGENPPB12', 'IGENPC715', 'IGENPC718', 'KGENPA512', 'KGENPA515', 'KGENPG317', 'KGENPJD07', 'KHMJPJD07', 'KGENPDF12', 'KGENPDF15', 'GEX0509900', 'GEX2309200', 'GEN380PA02', 'GEN3K0PA04', 'KGENPNF04', 'KGENPNF08', 'KGENPGF10', 'KGENPC114', 'KGENPC117', 'GEX3309100', 'GEX3409400', 'GEX3809900', 'HMJ3K0PA04', 'HMJ1C0PA02', 'KHMJPTB06', 'KGENPGS11', 'KGENPGS15', 'KGENPJ317', 'HMJ390PA99', 'GEN8Z0GA00', 'GEX8309700', 'GEX8C09800', 'GEN8C0GA00', 'GEN8C1GA04', 'KGENCRC04', 'GEN8A0GA00', 'GEN8A1GA04', 'KGENCPJ04', 'GEX8A09800', 'GEN550GA97', 'GEX4609500', 'GEN5A0GA98', 'KGENCNJ04', 'GEN570GA04', 'GEN5A1GA04', 'KGENCNB04', 'GEN4F0PA04', 'KGENPHR04', 'KGENPHR17', 'KGENCVC04', 'GEN6B0AA04', 'KGENCWG04', 'GEN7C0AA04', 'KGENCWJ04', 'GEN7F0AA04', 'GEX4509500', 'KGENCWK04', 'GEN7H0AA04', 'KGENCUE08', 'KGENCUI17', 'GEN5K0AA04', 'KGENCUD04', 'GEN5H0AA98', 'GEX4409400', 'GEN4B0PA96', 'GEN490PA99', 'KGENCUG15', 'GEN8Z1GA04', 'KGENCLJ04', 'GEN8K0GA08', 'KGENCLK08', 'GEN8D0GA06', 'KGENCPK06', 'HMJ8Y0GA06', 'KHMJCRD06', 'GEN8Y0GA06', 'KGENCRD06', 'KGENCWT13', 'KGENCWU13', 'GEN7D0AA00', 'GEX7309600', 'GEX7D09800', 'GEN7G0AA00', 'GEX7G09800', 'GEX6209700', 'GEN6A0AA97', 'GEN7A0AA00', 'GEX7A09800', 'CCHNPAQ18', 'CCHNPE516', 'GEN0M0PA06', 'CCHNPMCC06', 'CCHNPJ417', 'CCHNPHDC08', 'CCHNPHDC11', 'CCHNPSDC11', 'GEN080PA00', 'GEN080TA00', 'CCHNPXDC03', 'CCHNPF017', 'CCHNPJDC10', 'CCHNPB314', 'CCHNPB317', 'CCHNPD018', 'CCHNPEFC02', 'GEN090TA02', 'GEN090PA02', 'CCHNPNFC04', 'GEN0R0PA04', 'CCHNPNFC09', 'CCHNPGFC11', 'CCHNPC315', 'CCHNPC318', 'CCHNPSBC10', 'CCHNPSBC14', 'CCHNPF917', 'CCHNPC915', 'CCHNPTMC11', 'CCHNPDMC13', 'CCHNPDMC16', 'GEN0L0PA04', 'CCHNPJMC05', 'CCHNPF816']


COLOR_LIST = ['D3', '1C', 'JS', 'T5', 'DRR', '3D', 'S6', 'K9', 'AAJ', 'YF', 'PRR', 'K7N', 'QD', 'ABT', 'YD', '3X', 'MST', 'KCQ', 'LAR', 'BGD', 'A1', '4SY', '7S', 'TW', 'UC', '4ST', 'HL', 'AE3', '6K', 'D9B', '6C', '9B', 'S4', 'ABP', 'D5U', 'MY3', 'GC8', '4C', 'K3G', 'E6S', 'K5', 'KU9', 'WM', '1H', 'S7', 'RE4', '9H', 'Y7', 'IR', 'K7G', '9P', 'YL', 'OT', '5P', 'UAA', 'Y1', 'BY2', 'AAK', 'UX9', '4SS', 'KN7', 'C3U', 'K6', 'A3D', 'BF1', 'O9', 'R9', 'MA', 'I2', 'DC', 'LC', 'H5', 'SWP', 'KCB', 'EPB', '4SV', 'YP', 'IM', 'NBM', 'H2Y', 'D0', 'MR5', 'EAB', '1U', 'O8', 'JQ', 'QG', 'STM', 'K3R', 'EB', 'CB', 'AA', 'K3N', 'S2C', 'C0', 'AW', 'B4U', 'YC', '1D', '1L', 'J9', '3H', 'EXB', '1S', 'K3Y', '4SW', 'BAH', 'XMB', '4SX', 'C3', 'MBA', 'TX', 'VR', 'C5', 'R8', 'CD', 'CS', 'HO', 'UD', 'AV', '9V', 'LM', 'VQ', 'M9Y', 'L8V', 'YS', 'CFB', 'UY', 'LK', 'IY', 'D8', 'KU7', '2R', '3C', 'U3', 'Y3', 'J6', 'G6', 'P9', '1E', 'RU', 'PT', 'RJ', 'TH', 'NW', 'VV', 'TR', 'LS', 'JG', 'VB', 'WE', 'XS', 'MC', 'SL', 'TP', 'ZK', 'OA', 'KJ', 'YK', 'RI', 'QR', 'SH', 'QI', 'SS', 'UR', 'TQ', 'TY', 'NN', 'TB', 'MH', 'HI', 'EH', 'IH', 'ZH', 'FU', 'QW', 'YV', 'YB', 'W3', 'R3', '5Y', '7B', 'CW', 'MG', 'YE', 'YW', 'L2', '1W', 'S2', 'HG', 'LG', 'IJ', 'XF', '4R', '6A', 'L9', 'JN', 'GQ', 'B5', 'XG', 'ZZ', 'ZD', 'ZP', 'D11', 'AY', 'ZA', 'BT', 'YG', 'BA', 'VG', 'YH', 'YO', 'DJ', 'EJ', 'FJ', 'IA', 'TJ', 'HJ', 'GJ', 'WV', 'WB', 'WH', 'WQ', 'WS', 'WY', 'AK', 'ZG', 'BJ', 'TN', '99', 'JD', '4A', '5G', 'P7', 'C9', 'SB6', 'RW', 'C11', 'XE', 'XD', 'XC', 'C31', 'BS', 'YR', 'GE', 'BL', 'BW', 'FA', 'UI', 'CU', 'EV', 'DI', 'NI', 'UF', 'PI', 'QB', '61', 'MV', 'EP', 'BO', 'B0', '2J', '7X', '6J', '6P', 'D2', '8J', 'F8', '7J', 'N11', 'SL1', 'AB', 'WD3', 'YD3', 'YB2', 'C1A', '9G', '9K', 'A7', 'M5', 'S3', 'O3', 'T3', 'L6', 'Z1', 'Y2', 'PH', 'C1', '2Y', '6Y', 'B1', '2G', '4T', 'R4', 'B7', '3R', '6G', 'B2', 'V9', '3W', 'J1', '7V', 'O6', '2D', 'J4', '1N', 'T2', '5E', 'B3', '3Y', 'R5', '8Y', '2V', '6B', '7G', '5C', 'E7', 'B8', '4B', 'U2', 'C4', 'XA', 'XY', 'XU', 'WO', 'XV', 'XB', '7Y', 'G7', 'U4', 'R1', 'G5', 'L1', '4Y', 'C6', 'N9', '3L', '7P', 'N4', '8V', 'A5', 'I3', '3B', 'V5', '7R', 'NY', 'P6', 'YJ', 'JT', 'XJ', 'JC', 'JO', 'JP', 'YX', 'VH', 'YZ', '70', '1R', 'UP', 'VM', 'UQ', 'UO', 'VU', 'UX', 'VT', 'MI', '5X', 'VS', 'WI', 'L4', 'VN', 'WZ', 'UM', 'VE', 'ZQ', 'Y9', '3P', '6D', 'E3', '4L', '9L', 'P8', '1P', 'NE', 'MQ', 'DY', 'UN', 'NM', 'UE', 'DL', '4Z', 'AQ', 'SC', 'NF', 'DD', 'DT', 'XW', 'XT', 'WN', 'KQ', 'IN', 'WL', 'P1', 'SD4', 'SD2', 'G8', 'HM', 'RA1', 'W4', '8X', '1J', '9X', '5J', '4J', '3J', 'XK', 'XZ', 'FB8', 'XH', 'XM', '3G', 'U8', 'J5', '8S', '1B', 'KA', 'J7', 'Z8', 'CU3', 'KCS', 'A2R', 'ABB', 'G7A', 'BU7', 'BEG', 'K1P', 'DN9', 'AEQ', 'BUD', 'EU3', 'SEN', 'AUD', 'UEU', 'BBE', 'MYW', 'BMY', 'URG', 'EU2', 'DYS', 'H4R', 'P2M', 'M6B', 'D7U', 'B3U', 'C3S', 'BHY', 'G4N', 'M5G', 'AJR', 'AAP', 'AYB', 'AH1', 'AH4', 'AH6', 'AH7', 'AAW', 'AAQ', 'AH3', 'AH5', 'AYE', 'AJT', 'AUB', 'AAT', 'ACN', 'PWB', 'BU2', 'A3R', 'BPY', 'II', 'IZ', 'ALM', 'B2Y', 'L7G', 'C5M', 'BLA', 'FDP', 'DBS', 'FBD', 'F2G', 'K3U', 'AX', 'OK', 'I7', '09', 'ANB', 'AEB', 'AH2', 'AE2', 'DT9', 'BD5', 'A1W', 'ASE', '8Q', 'BWA', 'MBN', 'D2B', 'D2A', 'SK2', 'R2', 'C2', 'V1', 'Z7', 'PN', 'GZ', 'F2', 'B4', 'BF', 'ZU', 'R7', 'GK', 'SQ', 'V3', 'E4', 'V8', 'EK', '5L', 'D1', 'V6', '1A', 'L3', 'D5', 'CJ', 'JA', 'VJ', 'JU', 'JB', 'NJ', 'UB', 'SA', 'BM', 'BC', 'B9', 'L7', 'XL', 'L5', 'JZ', 'JE', 'UJ', 'OJ', 'LJ', 'JK', '9J', '6R', 'BR', 'SY', 'Z9', '2F', 'DZ', 'BX', 'CL', 'XX', 'AH', 'BU', 'XO', '2B', 'SK', '3E', 'VL', 'AR', 'GU', '3T', '2T', 'N4B', 'R3A', 'WAW', 'R9A', 'PR2', 'T5N', 'UYS', 'RHM', 'WY7', 'PGU', 'PW5', 'R3Y', 'NKA', 'N3S', 'S2R', 'P3U', 'YU3', 'RG3', 'X3N', 'LB', 'S5N', 'N5N', 'X5E', 'N5S', 'GL', 'GB', 'X2', 'GW', 'BH', 'YT', 'GG', 'QH', '3O', 'LV', 'X1', 'X3', 'X4', 'BV', 'XK3', 'WS8', 'RT9', 'TA2', 'N5F', 'TR9', 'RBC', 'FL', 'HB', 'SR', 'Y5S', '2X', '7F', 'N3Y', '9F', 'NR2', '9A', 'RR', 'WW9', 'TB9', 'NN9', 'XU9', 'P9Y', 'V9S', 'Y9S', 'N4G', 'P7N', 'R5N', 'PMC', 'YS2', 'S9W', 'T9Y', 'Z9U', 'QY', 'ZL', 'SB', 'HR', 'T2Y', 'RA3', 'W5U', 'FY', 'NL', 'GH', 'BK', 'BB', 'EG', 'LN', 'LH', 'SJ', 'SD', 'NB', 'FG', 'DW', 'FR', 'AS', 'QU', '5F', '9W', '8M', 'M2U', 'UBS', 'NU2', 'TDY', 'XBG', 'VEA', 'WGM', 'S7U', 'SAE', 'FH', 'DG', 'LL', 'LY', 'YY', 'FB', 'EQ', '44', 'BHH', '29', 'GVF', 'BRN', 'EZ', 'BYC', 'CQA', 'AKA', 'LBR', 'CY', '26', 'S8', 'BYE', 'UL', 'BYD', 'TI', 'FC', 'XP', 'KS', 'WK', 'DCM', 'PKG', 'VA', 'A9', 'NZ', 'GAH', 'LT', '15', 'J11', '9Z', 'D1A', 'G11', 'F11', 'ZZ2', 'ND', 'WB1', '97', '98', 'DD2', 'DD4', '08', 'XI', 'FB4', '96', '75', 'NH', 'LD', 'DR', 'JB4', 'JB5', 'HB4', '88', 'HU', 'CGK', 'CGS', 'BGH', 'DCP', 'AYK', 'YBR', '87', 'GA3', 'BF6', 'BNF', 'CBJ', 'ED', 'ALB', '8O', '2I', 'BYA', 'BNT', 'DC0', 'DB3', 'GB2', 'GB5', 'GB6', 'GB8', 'JB3', 'HB1', 'HB3', 'SC1', 'SB2', 'FZ', 'ZE', 'TRY', 'XUG', 'RYN', 'VYN', 'XMG', 'XRD', 'XTJ', 'RY', 'HZ', 'PPB', 'VYF', '9Y', 'YAK', 'XCB', 'YDA', 'YMB', 'V2', 'U7', 'CH']
COLOR_SET = set(COLOR_LIST)
